package com.yykj.user.center.server.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yykj.common.util.serializer.LocalDate2LongSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.time.LocalDateTime;

/**
 * @author chenl
 * @version 1.0
 * @date 2021/10/20 22:46
 */
@Data
public class PatientDTO {

	private String id;

	@ApiModelProperty("微信openId")
	private String openid;

	@ApiModelProperty("患者姓名")
	private String patientName;

	@ApiModelProperty("昵称")
	private String nickName;

	@ApiModelProperty("患者性别")
	private String gender;

	@ApiModelProperty("联系电话")
	private String mobile;

	@ApiModelProperty("头像")
	private String avatar = "";

	@ApiModelProperty("身份证号码")
	private String idCard = "";

	@ApiModelProperty("介绍")
	private String info = "";


	@ApiModelProperty("创建时间")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private LocalDateTime addTime;

	@ApiModelProperty("医院ID")
	private Integer hospitalId;

	@ApiModelProperty("出生日期")
	private String birthday;

	@ApiModelProperty("状态 1：启用 2：禁用")
	private Integer state;

}
